home *** CD-ROM | disk | FTP | other *** search
/ Aminet 16 / Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso / Aminet / comm / bbs / TA1_22.lha / TA-Install < prev    next >
Text File  |  1996-10-15  |  93KB  |  1,855 lines

  1. ; This is the install Script for TransAmiga BBS v1.21
  2.  
  3. ; Init various variables
  4.  
  5. (set @execute-dir (pathonly @icon)) ; get the path to directory for which
  6.                                     ; script is started
  7. (set #vernum (getversion))
  8. (set #ver (/ #vernum 65536))
  9. (set #rev (- #vernum (* #ver 65536) ) )
  10. (set #bbsassign "BBS")
  11. (set #CPU (database "cpu"))
  12. (set #bbspath (getassign #bbsassign "a")) ; get the physical path of BBS:
  13.  
  14. ; check if we can find a previous TA version
  15.  
  16. (complete 0)
  17. (if (= (exists "sys:Utilities/MultiView") 1)
  18.     ( ; start of positive part
  19.     (run "SYS:Utilities/MultiView" "ReadMe.1st"
  20.         (prompt "Important information file.")
  21.         (help "Read this file carefully!"))
  22.     ) ; end of positive part
  23.     ( ; Start negative part
  24.         (if (= (exists "sys:Utilities/AmigaGuide") 1)
  25.         ( ; start positive part
  26.         (run "SYS:Utilities/AmigaGuide" "ReadMe.1st"
  27.             (prompt "Important information file.")
  28.             (help "Read this file carefully!"))
  29.         ) ; end of positive part
  30.         ) ; end of if
  31.     ) ; end of negative part
  32. ) ; end of if
  33.  
  34. (if (= #bbspath "") ; check if BBS: exists
  35.         ( ; start of positive part (does not exist)
  36.         (set #update
  37.                 (askbool
  38.                         (prompt "TransAmiga BBS seems not to be installed."
  39.                                 " If you allready have TransAmiga installed"
  40.                                 " then select \"Update\"")
  41.                         (help "If you do not have TransAmiga installed"
  42.                               " select \"Install\" otherwise select \"Update\"")
  43.                         (default 1)
  44.                         (choices "Update" "Install")))
  45.         ) ; end of positive part
  46.         ( ; start of negative part
  47.         (set #update
  48.                 (askbool
  49.                         (prompt "TransAmiga BBS seems to be installed "
  50.                                 "allready.\n\n"
  51.                                 "Do you wish to update your installation?")
  52.                         (help "If you do not have TransAmiga BBS installed "
  53.                               "allready you should select \"Install\".")
  54.                         (default 1)
  55.                         (choices "Update" "Install")
  56.                 ) ; end of askbool
  57.         ) ; end of set #update
  58.         (set @default-dest #bbspath)
  59.         ) ; end of negative part
  60. ) ; end of check
  61.  
  62. (complete 3)
  63.  
  64. (if #update
  65.         ( ; Start of positive part - update installation
  66.  
  67. ; find TransAmiga's main directory
  68.  
  69.         (if (askbool
  70.                 (prompt "Is TransAmiga BBS installed in \""
  71.                         #bbspath "\" ?")
  72.                 (help "\"" #bbspath "\" should be the directory"
  73.                       " where you keep all subdirectories of"
  74.                       " TransAmiga BBS. If you keep them elsewhere"
  75.                       " select \"No\".")
  76.                 (default 1)
  77.             ) ; end of askbool
  78.         ( ; start of positive part
  79.           (set #dummy "1") ; empty parts are not allowed
  80.         ) ; end of positive part
  81.         ( ; start of negative part
  82.         (set #bbspath (askdir
  83.                         (prompt "Please select directory where you keep"
  84.                                 " TransAmiga's directories.")
  85.                         (help "In a standard TransAmiga installation it is"
  86.                               " BBS:\n")
  87.                         (default #bbspath)
  88.                      )
  89.         )
  90.         )) ; end of negative part
  91.  
  92.         (complete 5)
  93.  
  94. ; start update
  95.  
  96.         (set @default-dest #bbspath)
  97.         (if (askbool
  98.                 (prompt "We are ready to update your "
  99.                         "installation. Do you want your old executables backed "
  100.                         "up in the directory \"" (tackon #bbspath "old_bin") "\" ?")
  101.                 (help "This release has been tested in many ways. It is "
  102.                       "not necessary to back up your old files, however I "
  103.                       "recommand it. You can delete the old files later.\n\n"
  104.                       "Bugs may be left - no software is bugfree."
  105.                       " If you find any bugs send a mail to a support "
  106.                       "board! This is important to improve the project."
  107.                       "\n\nIf you want to have a copy of your files"
  108.                       " then select \"Backup files\" and your files will be"
  109.                       " stored in \"" (tackon #bbspath "old_bin") "\"."
  110.                       " You can copy them back to your \"" (tackon #bbspath "bin")
  111.                       "\" if needed.")
  112.                 (default 0)
  113.                 (choices "Backup files" "Don't backup")
  114.             ) ; end of askbool
  115.  
  116.             ((complete 5)
  117.  
  118. ; find the executables
  119.  
  120.                 (if (= (exists (tackon #bbspath "bin")) 2) ; start of positive part of askbool
  121.                         (set #bindir (tackon #bbspath "bin")) ; positive part
  122.                         (set #bindir (askdir
  123.                                 (prompt "Where are your executables?")
  124.                                 (help "Choose the directory where the binary files"
  125.                                       " are located you wish to update. As BBS:bin"
  126.                                       " does not exist you have to specify the"
  127.                                       " directory. It is not checked if there"
  128.                                       " allready exist the binaries so you can"
  129.                                       " make an other directory. We suggest to"
  130.                                       " keep the binary files in \"BBS:bin\" so"
  131.                                       " further updates can be installed easily.")
  132.                                 (default #bbspath)
  133.                                 ) ; end of askdir
  134.                         ) ; end of negative part
  135.                   ) ; end of if exists
  136.  
  137.                   (complete 10)
  138.  
  139. ; backup old binaries
  140.  
  141. ;                  (makedir (tackon #bbspath "old_bin"))
  142.                   (copyfiles
  143.                         (prompt "Select files to backup")
  144.                         (help @copyfiles-help)
  145.                         (source #bindir)
  146.                         (dest (tackon #bbspath "old_bin"))
  147.                         (all)
  148.                         (confirm)
  149.                   ) ; end of copyfiles
  150.                 ) ; end of positive part
  151.         ) ; end of *if* askbool - backup is done if the user wished
  152.  
  153.         (complete 15)
  154.  
  155. ; Install the new executables
  156.  
  157.         (message "The next step will copy the new executables.")
  158.         (if (exists (tackon #bbspath "bin"))
  159.                 (set #target (tackon #bbspath "bin")) ; positive part
  160.                 (set #target (askdir
  161.                         (prompt "Please select directory for new binaries")
  162.                         (help "Choose the directory where the binary files"
  163.                               " are located you wish to update. As BBS:bin"
  164.                               " does not exist you have to specify the"
  165.                               " directory. It is not checked if there"
  166.                               " allready exist the binaries so you can"
  167.                               " make an other directory. We suggest to"
  168.                               " keep the binary files in \"BBS:bin\" so"
  169.                               " further updates can be installed easily.")
  170.                         (default #bbspath)
  171.                         ) ; end of askdir
  172.                 ) ; end of directory choice and negative part
  173.         )
  174.         (copyfiles
  175.                 (prompt "Copying binary files...")
  176.                 (help "This section installes the new executables that"
  177.                       " belong to TransAmiga v1.21.")
  178.                 (source (tackon (pathonly @icon) "bin"))
  179.                 (dest #target)
  180.                 (all)
  181.                 (confirm)
  182.         ) ; end of copyfiles
  183.  
  184.         (complete 20)
  185.  
  186. ; install 68030 versions if system has support for them
  187.  
  188.         (if (> #CPU "68010")
  189.                 (if (askbool
  190.                           (prompt "Your Amiga is equiped with MC" #CPU "."
  191.                                   " Some parts of TransAmiga BBS"
  192.                                   " are compiled for MC68020. Do you"
  193.                                   " wish to install these versions?"
  194.                                   "\n\nAttention! Don't use these files"
  195.                                   " if you have an EC processor (e.g. 68EC030)")
  196.                           (help "I suggest to use these optimized versions"
  197.                                 " as they are a bit faster.\n")
  198.                           (default 1)
  199.                           (choices "Install" "Skip this part")
  200.                     )
  201.                     (copyfiles
  202.                           (prompt "Copying 68020 binary files...")
  203.                           (help @copyfiles-help)
  204.                           (source (tackon (pathonly @icon) "bin_020"))
  205.                           (dest #target)
  206.                           (all)
  207.                           (confirm)
  208.                     ) ; end of positive part
  209.                 )
  210.         ) ; end of if
  211.  
  212.         (complete 25)
  213.  
  214. ; delete old hisoftbasic.library
  215.  
  216.         (if (= (exists "libs:hisoftbasic.library") 1)
  217.             (delete (prompt "TransAmiga v1.21 comes with the new"
  218.                             " hbasic2.library and does not use"
  219.                             " hisoftbasic.library any more. Shall the old"
  220.                             " library be deleted?")
  221.                     (help "hisoftbasic.library really should be deleted as"
  222.                           " it only wastes storage.\n\nAll programs that used"
  223.                           " this library have been replaced by versions"
  224.                           " that no longer use it.\n\nHowever, if you wish to"
  225.                           " be able to run your previous TransAmiga"
  226.                           " version keep it. You can delete it manually"
  227.                           " if you find out that you no longer wish to"
  228.                           " return to earlier TransAmiga versions.")
  229.                      (confirm)
  230.                      (optional force askuser)
  231.             ) ; end of delete
  232.         ) ; end of if
  233.  
  234.         (complete 30)
  235.  
  236. ; install transamiga, hbasic2, zmodem and garbagecollector.library
  237.  
  238.         (copylib (prompt "TransAmiga v1.21 needs the new"
  239.                          " hbasic2.library or it will not run. It is"
  240.                          " installed now.")
  241.                  (help "TransAmiga v1.21 will not work without"
  242.                        " hbasic2.library.\n\nIt has to be installed or this"
  243.                        " install script will fail at a later part!")
  244.                  (source (tackon (pathonly @icon) "Libs/hbasic2.library"))
  245.                  (dest "Libs:")
  246.                  (confirm)
  247.                  (optional force askuser)
  248.         ) ; end of copylib
  249.  
  250.         (complete 40)
  251.  
  252.         (copylib (prompt "TransAmiga v1.21 needs the new"
  253.                          " transamiga.library. It is"
  254.                          " installed now.")
  255.                  (help "TransAmiga v1.21 will not work correctly without"
  256.                        " the new transamiga.library. If you use an older"
  257.                        " version you may come accross strange problems and"
  258.                        " you are not able to use the new ARexx commands."
  259.                        "\n\nATTENTION! Don't use this library with older"
  260.                        " versions of TransAmiga as you will have no local"
  261.                        " display in this case. Other strange things may"
  262.                        " happen I am not aware of currently.")
  263.                  (source (tackon (pathonly @icon) "Libs/transamiga.library"))
  264.                  (dest "Libs:")
  265.                  (confirm)
  266.                  (optional force askuser)
  267.         ) ; end of copylib
  268.  
  269.         (complete 45)
  270.  
  271.         (copylib (prompt "garbagecollector.library is needed by some new"
  272.                          " tools that are supplied with this version."
  273.                          " Should it be installed now?")
  274.                  (help "I strongly suggest to install the library or you"
  275.                        " will not be able to use the programs supplied in"
  276.                        " bin_020 directory or the correspondig versions in"
  277.                        " bin directory. Those tools are written in Oberon-II"
  278.                        " and the library manages efficient memory handling."
  279.                        " You really really should install it.")
  280.                  (source (tackon (pathonly @icon) "Libs/garbagecollector.library"))
  281.                  (dest "Libs:")
  282.                  (confirm)
  283.                  (optional force askuser)
  284.         ) ; end of copylib
  285.  
  286.         (complete 50)
  287.  
  288. ; check which arp.library can be installed
  289.  
  290.         (if (< #ver 36)
  291.             (set #arpname "arp.library.OS1_3")
  292.             (set #arpname "arp.library.OS2_x")
  293.         )
  294.  
  295. ; check which zmodem can run on the machine
  296.  
  297.         (if (> #CPU "68010")
  298.             (set #libname "xprzmodem.library.020")
  299.             (set #libname "xprzmodem.library")
  300.         )
  301.  
  302. ; install arp.library
  303.  
  304.         (copylib (prompt "TransAmiga and library need arp.library to work."
  305.                          " There are two versions of the library. If you"
  306.                          " have AmigaOS 2.x or up the arp.library maps"
  307.                          " it's functions to system routines. I detect"
  308.                          " AmigaOS v" #ver "." #rev " and will install the"
  309.                          " correct version. Shall I install it?")
  310.                  (help "arp.library is also an essential library as it"
  311.                        " provides routines that make a programmer's life"
  312.                        " easier when he is forced to compatibility with"
  313.                        " AmigaOS 1.3 (34.x).")
  314.                  (source (tackon (tackon (pathonly @icon) "Libs") #arpname))
  315.                  (dest "Libs:")
  316.                  (newname "arp.library")
  317.                  (confirm)
  318.                  (optional force askuser)
  319.         ) ; end of copylib
  320.  
  321.         (complete 55)
  322.  
  323. ; install xprzmodem.library v2.52T
  324.  
  325.         (copyfiles (prompt "There are several new xprzmodem.library versions"
  326.                           " floating around, but most of them have bugs or"
  327.                           " they are extreamely slow and CPU time hungry.")
  328.                    (help "This xprzmodem.library v2.52t provides a special parameter"
  329.                          " called T like TransAmiga. If the library is in"
  330.                          " this mode it accepts upload resumes only if there"
  331.                          " is no .Desc file.\n\n.Desc files are made by TransAmiga"
  332.                          " as soon as the file is received completely and"
  333.                          " written to the filelist. So it's save to say:"
  334.                          "\n\nIf there is a .Desc file no resume is allowed."
  335.                          "\n\nThis is the whole secret of the library."
  336.                          " The library is compiled by Georg 'Gio' Magschok."
  337.                          "\n\nSeveral SysOps reported problems with v3.x"
  338.                          " of xprzmodem.library. The library is localized"
  339.                          " and needs a lot of CPU time. This can lead to"
  340.                          " transmission errors especially with higher"
  341.                          " speeds. If you have a really fast CPU you may"
  342.                          " never come accross this phenomen, but if you"
  343.                          " do not use a serial board  (e.g. MFC) I strongly"
  344.                          " suggest to use the supplied version as it works"
  345.                          " perfectly.")
  346.                     (source (tackon (tackon (pathonly @icon) "Libs") #libname))
  347.                     (dest "Libs:")
  348.                     (newname "xprzmodem.library")
  349.                     (confirm)
  350.                     (optional force askuser)
  351.         ) ; end of copyfiles
  352.  
  353.  
  354.         (copylib   (prompt "A new fifo.library is installed.")
  355.                    (help "The fifo part is PD by Matt Dillon.\n\nYou really"
  356.                          " should install it as TrShell will not run without"
  357.                          " fifo.")
  358.                     (source (tackon (pathonly @icon) "Libs/fifo.library"))
  359.                     (dest "Libs:")
  360.                     (confirm)
  361.                     (optional force askuser)
  362.         ) ; end of copyfiles
  363.  
  364.         (copylib   (prompt "A new fifo-handler is installed.")
  365.                    (help "The fifo part is PD by Matt Dillon.\n\nYou really"
  366.                          " should install it as TrShell will not run without"
  367.                          " fifo.")
  368.                     (source (tackon (pathonly @icon) "L/fifo-handler"))
  369.                     (dest "L:")
  370.                     (confirm)
  371.                     (optional force askuser)
  372.         ) ; end of copyfiles
  373.         (startup "Fifo"
  374.                (prompt "Adding fifo start entry to user-startup")
  375.                (help "This has to be done to use fifo.")
  376.                (command "run <nil: >nil: l:fifo-handler\n")
  377.         )
  378.  
  379.         (complete 65)
  380.  
  381. ; Install the docs
  382.  
  383.         (set #frompath (tackon (pathonly @icon) "docs"))
  384.         (copyfiles (prompt "Installing new Docs...")
  385.                    (help "You really should copy them as they are really"
  386.                          " important.\n\nI strongly suggest to read the"
  387.                          " docs carefully if you want to avoid"
  388.                          " problems caused by missing information.")
  389.                    (source #frompath)
  390.                    (dest (tackon #bbspath "docs"))
  391.                    (all)
  392.                    (confirm)
  393.                    (optional force askuser)
  394.         ) ; end of copyfiles
  395.  
  396.         (complete 70)
  397.  
  398. ; Install Rexx stuff
  399.  
  400.         (if (askbool
  401.                 (prompt "Attention! Your logon.trans can be overwritten"
  402.                         " while updating!\n"
  403.                         "Backup your ARexx scripts in \"" (tackon #bbspath "old_rexx") "\" ?")
  404.                 (help "You really should back up your ARexx scripts or you"
  405.                       " may loose your logon.trans, for example."
  406.                       "\n\nIf you want to have a copy of your files"
  407.                       " then select \"Backup files\" and your files will be"
  408.                       " stored in \"" (tackon #bbspath "old_rexx") "\"."
  409.                       " You can copy them back to your \"" (tackon #bbspath "rexx")
  410.                       "\" if needed.")
  411.                 (default 0)
  412.                 (choices "Backup files" "Don't backup")
  413.             ) ; end of askbool
  414.         ( ; start of positive part
  415.                   (copyfiles
  416.                         (prompt "Select files to backup")
  417.                         (help @copyfiles-help)
  418.                         (source (tackon #bbspath "rexx"))
  419.                         (dest (tackon #bbspath "old_rexx"))
  420.                         (all)
  421.                         (confirm)
  422.                   ) ; end of copyfiles
  423.         )) ; end of if
  424.  
  425.         (message "The next step will copy some ARexx scripts.")
  426.         (copyfiles (prompt "Some ARexx scripts are updated or new...")
  427.                    (help "If you allready installed TransAmiga and"
  428.                          " have used it for a while you surely have"
  429.                          " made your own scripts.\n\n"
  430.                          "No matter of that you should have a look"
  431.                          " at the supplied files. It is not really"
  432.                          " necessary to install them, but they are"
  433.                          " of some interest.\n\nFollowing scripts are"
  434.                          " supplied:\n\nDeepSpace.trans\nKnight.trans\n"
  435.                          "Localdisplay.trans\nLogon.trans\nNode.trans\n"
  436.                          "Relogin.trans\nTrMaint.trans\nTrShell.trans\n\n"
  437.                          "Be carefull with Logon.trans if you use your"
  438.                          " own or a custom one you should not copy it."
  439.                          " Have a look at it and see if you can use parts.")
  440.                    (source (tackon (pathonly @icon) "rexx"))
  441.                    (dest (tackon #bbspath "rexx"))
  442.                    (confirm)
  443.                    (all)
  444.                    (optional force askuser)
  445.         ) ; end of copyfiles
  446.  
  447.        (complete 80)
  448.  
  449. ; update configs - the ugly part.
  450.  
  451. ; find the path to the config files
  452.  
  453.         (set #cfgpath (askdir (prompt "Select your configs directory:")
  454.                              (help "If you use an other directory than \""
  455.                                    (tackon #bbspath "Configs")
  456.                                    "\" you have to change the path.\n\n"
  457.                                    "Standard installation uses the path"
  458.                                    " specified above.")
  459.                              (default (tackon #bbspath "Configs"))
  460.                       ) ; end of askdir
  461.         ) ; end of set
  462.  
  463.         (complete 81)
  464.  
  465. ; backup existing configs
  466.  
  467.         (copyfiles (prompt "This part makes a backup of all your configs...")
  468.                    (help "You really should make a backup as we never know"
  469.                          " if the update script fails or C= Installer"
  470.                          " gurus...")
  471.                    (source #cfgpath)
  472.                    (dest (tackon #bbspath "old_Configs"))
  473.                    (confirm)
  474.                    (all)
  475.                    (optional force askuser)
  476.         )
  477.  
  478.         (complete 85)
  479.  
  480. ; which language is in Default.lang?
  481.  
  482.         (if (askbool (prompt "Which language do you use for your"
  483.                              " Default.lang file?")
  484.                      (help "If you do not use English or German you"
  485.                            " should select the language you understand"
  486.                            " and edit your language file when the script"
  487.                            " finished. Change the lines you find in the"
  488.                            " other language to that one you use.\n\n"
  489.                            "Read the help of the next page - it is"
  490.                            " important!")
  491.                      (default 1)
  492.                      (choices "English" "German")
  493.              ) ; end of askbool
  494.              (set #lang "ENGLISH")
  495.              (set #lang "DEUTSCH")
  496.         )
  497.  
  498.         (complete 88)
  499.  
  500.         (copyfiles (prompt "Install new cfg file...")
  501.                    (help "You only need it if you upgrade from"
  502.                          " TransAmiga v1.11. If you have v1.12g1"
  503.                          " running you don't need them. You should"
  504.                          " manually check if you need some of the"
  505.                          " .lang files.")
  506.                    (source (tackon (pathonly @icon) "Configs/Language.cfg"))
  507.                    (dest #cfgpath)
  508.                    (confirm)
  509.                    (optional force askuser)
  510.         ) ; end of copyfiles
  511.  
  512.         (complete 89)
  513.  
  514.         (copyfiles (prompt "Install new menu file...")
  515.                    (help "You only need it if you upgrade from"
  516.                          " TransAmiga v1.11. If you have v1.12g1"
  517.                          " running you don't need them. You should"
  518.                          " manually check if you need some of the"
  519.                          " .lang files.")
  520.                    (source (tackon (pathonly @icon) "Configs/custom.menu"))
  521.                    (dest #cfgpath)
  522.                    (confirm)
  523.                    (optional force askuser)
  524.         ) ; end of copyfiles
  525.  
  526.         (complete 90)
  527.  
  528. ; update configs through external program
  529.  
  530.         (run (cat "\"" (tackon (pathonly @icon) "cfgupd") "\" \"" #cfgpath "\" " #lang)
  531.              (prompt "An external command is now started to update"
  532.                      " your existing config files.\n\nUserfiles are"
  533.                      " updated when the user loggs on.")
  534.              (help "To run TransAmiga you really should update your"
  535.                    " configs or TransAmiga will come up with some"
  536.                    " error on startup.\n\nSomething important:\n"
  537.                    "Several new features require some more lines in"
  538.                    " the main configuration file (e.g. transamiga.cfg)"
  539.                    " that can't be made by the script in an easy way."
  540.                    " If you do not want to use the defaults you should"
  541.                    " run TransCfg and change the values to your needs."
  542.                    "\n\nIf you currently use v1.11 your File.Cmds and"
  543.                    " your Settimgs.Cmds will get new lines. Edit these"
  544.                    " files with your favoutite text editor and change"
  545.                    " the keys to suit your setup.")
  546.              (confirm)
  547.         )
  548.         (complete 100)
  549.  
  550. ) ; end of positive part
  551.  
  552.         ( ; start of negative part - Install TA
  553.  
  554.         (message "You have decided to have a look at TransAmiga BBS."
  555.                  " Congratulations you have defeated Darth Vader - oops,"
  556.                  " wrong game. Ok, allow me some words about TransAmiga"
  557.                  " BBS. The development of TransAmiga BBS started in 1990"
  558.                  " in California. Timothy J. Aston played around with"
  559.                  " BASIC and the serial port. This playing resulted"
  560.                  " in a first little BBS project. Time passes and the play"
  561.                  " gets serious. The first version of TransAmiga BBS is"
  562.                  " released to public. Since then many improvements and"
  563.                  " ideas have been realized.")
  564.         (message "TransAmiga BBS is still under"
  565.                  " constant development. TransAmiga BBS is designed to"
  566.                  " give the user an attractive interface. The SysOp part"
  567.                  " was not so important as some familarity with the Amiga"
  568.                  " Operating System is really needed. You had to read the"
  569.                  " manual carefully to install TransAmiga and keep it"
  570.                  " running.")
  571.         (message "This script wipes out the need of reading"
  572.                  " the manual to install TransAmiga BBS. That's dangerous"
  573.                  " as you really _*should*_ read the manual. If you don't"
  574.                  " read the manual you surely will not be able to design"
  575.                  " a well-looking and successfull BBS. This script is a"
  576.                  " part of the development of a powerfull SysOp interface"
  577.                  " for TransAmiga BBS.")
  578.         (message "The power of"
  579.                  " TransAmiga BBS is the ARexx interface. You can do"
  580.                  " almost everything with ARexx. TransAmiga provides more"
  581.                  " than 150 ARexx commands and gets more from release to"
  582.                  " release. This script does not install ARexx as it is a"
  583.                  " part of Workbench 2.0 and up. If you use WB 1.3 you"
  584.                  " should buy ARexx or better update your system to"
  585.                  " AmigaOS 2.0 or higher. The next release of TransAmiga"
  586.                  " BBS _MAY_ NO LONGER WORK WITH WB 1.3 as AmigaOS 2.0"
  587.                  " offers a lot of powerfull features for programmers.")
  588.         (message "STOP! Enough! - ok, It may be boring to read all"
  589.                  " this stuff so I now start the real installation of the"
  590.                  " BBS. You will be asked where to locate files and"
  591.                  " everything that's needed to make the configuration"
  592.                  " files.\n\n***ATTENTION!***\nIf you install in the same"
  593.                  " directory as your current installation most of your"
  594.                  " config files are lost!")
  595.         (complete 31)
  596.         (set #bbspath (askdir
  597.                         (prompt "Where do you wish to install TransAmiga"
  598.                                 " BBS?")
  599.                         (help "TransAmiga BBS will be installed in the"
  600.                               " selected directory. Several subdirectories"
  601.                               " will be created [without ask] and the"
  602.                               " needed files are copied to them. The"
  603.                               " assignment \"BBS:\" will lead to this"
  604.                               " directory.\n\nTransAmiga itself needs about"
  605.                               " 1 MByte for the files. On your boot device"
  606.                               " is also space needed for the font,"
  607.                               " handlers and libraries. You should at"
  608.                               " least have 5 MB free on the drive where"
  609.                               " you want to install TransAmiga BBS."
  610.                               "\n\nThis space is needed when you customize"
  611.                               " the BBS and install door games. You"
  612.                               " can locate your file areas on an other"
  613.                               " drive or keep them on the same."
  614.                               "\n\nWARNING: Experience showed that you"
  615.                               " should at least have a 80 MB hard drive"
  616.                               " if you wish to have an interesting choice"
  617.                               " of programs online.\n\nThe assignment"
  618.                               " will be written to your user-startup"
  619.                               " later. See that section if you want to"
  620.                               " know more about the assignment.\n\n"
  621.                               "You can create a new directory with the"
  622.                               " \"Create New Drawer...\" option. If you"
  623.                               " found the directory where you wish to"
  624.                               " instal TransAmiga BBS then select"
  625.                               " \"Proceed\".")
  626.                         (default "Work:bbs")
  627.                         (disk)
  628.                      ) ; end of directory choice
  629.         ) ; end of set #bbspath
  630.         (set @default-dest #bbspath)
  631.         (makeassign "BBS:" #bbspath)
  632.  
  633. ; copy binaries
  634.  
  635.         (copyfiles
  636.                 (prompt "Copying executables...")
  637.                 (help "This are the executable files that are needed to"
  638.                       " run TransAmiga BBS. Copy all of them until you"
  639.                       " know which you don't need.")
  640.                 (source (tackon (pathonly @icon) "bin"))
  641.                 (dest (tackon #bbspath "bin"))
  642.                 (all)
  643.                 (confirm)
  644.                 (optional force)
  645.         )
  646.  
  647.         (complete 5)
  648.  
  649. ; install 68020 versions if system has support for them
  650.  
  651.         (if (> #CPU "68010")
  652.                 (if (askbool
  653.                           (prompt "Your Amiga is equiped with MC" #CPU "."
  654.                                   " Some parts of TransAmiga BBS"
  655.                                   " are compiled for MC68020. Do you"
  656.                                   " wish to install these versions?")
  657.                           (help "I suggest to use these optimized versions"
  658.                                 " as they are a bit faster.\n")
  659.                           (default 1)
  660.                           (choices "Install" "Skip this part")
  661.                     )
  662.                     (copyfiles
  663.                           (prompt "Copying 68020 binary files...")
  664.                           (help @copyfiles-help)
  665.                           (source (tackon (pathonly @icon) "bin_020"))
  666.                           (dest (tackon #bbspath "bin"))
  667.                           (all)
  668.                           (confirm)
  669.                     ) ; end of positive part
  670.                 )
  671.         ) ; end of if
  672.  
  673.         (complete 7)
  674.  
  675. ; copy the doc files
  676.  
  677.         (copyfiles
  678.                 (prompt "Copying documentation files...")
  679.                 (help "This are the documentation files you really should"
  680.                       " read if you want to use the power of TransAmiga BBS.\n\n"
  681.                       "TransAmiga.dvi is only needed if you use a TeX read/print util.")
  682.                 (source (tackon (pathonly @icon) "Docs"))
  683.                 (dest (tackon #bbspath "Docs"))
  684.                 (all)
  685.                 (confirm)
  686.                 (optional force)
  687.         )
  688.         (complete 10)
  689.  
  690. ; copy programmers docs
  691.  
  692.         (copyfiles
  693.                 (prompt "Copying documentation files for programmers...")
  694.                 (help "This are the documentation files you need"
  695.                       " if you want to make programs for TransAmiga BBS.")
  696.                 (source (tackon (pathonly @icon) "Programming"))
  697.                 (dest (tackon #bbspath "Programming"))
  698.                 (all)
  699.                 (confirm)
  700.                 (optional force)
  701.         )
  702.  
  703.         (complete 12)
  704.  
  705. ; copy the .trans files
  706.  
  707.         (copyfiles
  708.                 (prompt "Copying TransAmiga BBS ARexx macros...")
  709.                 (help "These files have the real power! You can use"
  710.                       " ARexx macros to do almost everything a BBS should"
  711.                       " do and more :-]. This type of files is really important"
  712.                       " if you want to customize the BBS.")
  713.                 (source (tackon (pathonly @icon) "Rexx"))
  714.                 (dest (tackon #bbspath "Rexx"))
  715.                 (all)
  716.                 (confirm)
  717.                 (optional force)
  718.         )
  719.  
  720.         (complete 15)
  721.  
  722. ; copy example text files
  723.  
  724.         (copyfiles
  725.                 (prompt "Copying text files...")
  726.                 (help "These files are very important. You can"
  727.                       " customize the look of your BBS by editing them."
  728.                       " .ANSI files are for callers with ANSI terminal and"
  729.                       " files without extension are for normal display."
  730.                       " You should use an ANSI-Editor to customize the"
  731.                       " .ANSI files. There are some available for Amiga"
  732.                       " and a lot more for MS-DOS.")
  733.                 (source (tackon (pathonly @icon) "Text"))
  734.                 (dest (tackon #bbspath "Text"))
  735.                 (all)
  736.                 (confirm)
  737.                 (optional force)
  738.         )
  739.         (complete 20)
  740.  
  741. ; copy bulletins
  742.  
  743.         (copyfiles
  744.                 (prompt "Copying bulletin files...")
  745.                 (help "These files are needed to start the BBS"
  746.                       " immediately. If you know how to handle"
  747.                       " bulletins you can skip this.")
  748.                 (source (tackon (pathonly @icon) "Bulletins"))
  749.                 (dest (tackon #bbspath "Bulletins"))
  750.                 (all)
  751.                 (confirm)
  752.                 (optional force)
  753.         )
  754.  
  755.         (complete 21)
  756.  
  757. ; copy system directory
  758.  
  759.         (copyfiles
  760.                 (prompt "Copying system files...")
  761.                 (help "These files are needed to start the BBS"
  762.                       " immediately. If you run TransCfg anyway"
  763.                       " to set up your BBS you can skip this.")
  764.                 (source (tackon (pathonly @icon) "System"))
  765.                 (dest (tackon #bbspath "System"))
  766.                 (all)
  767.                 (confirm)
  768.                 (optional force)
  769.         )
  770.  
  771.         (complete 23)
  772.  
  773. ; install TransAmiga's defaupt font
  774.  
  775.         (copyfiles
  776.                 (prompt "Copying BBS font...")
  777.                 (help "The font is needed to display IBM ANSI graphics."
  778.                       " As IBM ANSI graphics are standard in BBS"
  779.                       " telecommunication it is essential to have"
  780.                       " the same outfit locally that is remote.")
  781.                 (source (tackon (pathonly @icon) "fonts"))
  782.                 (dest "fonts:")
  783.                 (all)
  784.                 (confirm)
  785.                 (optional force)
  786.         )
  787.         (complete 25)
  788.  
  789. ; install the libraries
  790.  
  791. ; install hbasic2.library
  792.  
  793.         (copylib (prompt "TransAmiga v1.21 needs the new"
  794.                          " hbasic2.library or it will not run. It is"
  795.                          " installed now.")
  796.                  (help "TransAmiga v1.21 will not work without"
  797.                        " hbasic2.library.\n\nIt has to be installed or this"
  798.                        " install script will fail at a later part!")
  799.                  (source (tackon (pathonly @icon) "Libs/hbasic2.library"))
  800.                  (dest "Libs:")
  801.                  (confirm)
  802.                  (optional force askuser)
  803.         ) ; end of copylib
  804.  
  805.         (complete 27)
  806.  
  807. ; install transamiga.library
  808.  
  809.         (copylib (prompt "TransAmiga v1.21 needs the new"
  810.                          " transamiga.library. It is"
  811.                          " installed now.")
  812.                  (help "TransAmiga v1.21 will not work correctly without"
  813.                        " the new transamiga.library. If you use an older"
  814.                        " version you may come accross strange problems and"
  815.                        " you are not able to use the new ARexx commands."
  816.                        "\n\nATTENTION! Don't use this library with older"
  817.                        " versions of TransAmiga as you will have no local"
  818.                        " display in this case. Other strange things may"
  819.                        " happen I actually don't think of.")
  820.                  (source (tackon (pathonly @icon) "Libs/transamiga.library"))
  821.                  (dest "Libs:")
  822.                  (confirm)
  823.                  (optional force askuser)
  824.         ) ; end of copylib
  825.  
  826.         (complete 30)
  827.  
  828. ; install Oberon's garbagecollector.library
  829.  
  830.         (copylib (prompt "garbagecollector.library is needed by some new"
  831.                          " tools that are supplied with this version."
  832.                          " Should it be installed now?")
  833.                  (help "I strongly suggest to install the library or you"
  834.                        " will not be able to use the programs supplied in"
  835.                        " bin030_881 directory or the correspondig versions in"
  836.                        " bin directory. Those tools are written in Oberon-II"
  837.                        " and the library manages efficient memory handling."
  838.                        " You really really should install it.")
  839.                  (source (tackon (pathonly @icon) "Libs/garbagecollector.library"))
  840.                  (dest "Libs:")
  841.                  (confirm)
  842.                  (optional force askuser)
  843.         ) ; end of copylib
  844.  
  845.         (complete 33)
  846.  
  847. ; check which arp.library can be installed
  848.  
  849.         (if (< #ver 36)
  850.             (set #arpname "arp.library.OS1_3")
  851.             (set #arpname "arp.library.OS2_x")
  852.         )
  853.  
  854.         (complete 35)
  855.  
  856. ; check which zmodem can run on the machine
  857.  
  858.         (if (> #CPU "68010")
  859.             (set #libname "xprzmodem.library.020")
  860.             (set #libname "xprzmodem.library")
  861.         )
  862.  
  863.         (complete 40)
  864.  
  865. ; install arp.library
  866.  
  867.         (copylib (prompt "TransAmiga and library need arp.library to work."
  868.                          " There are two versions of the library. If you"
  869.                          " have AmigaOS 2.x or up the arp.library maps"
  870.                          " it's functions to system routines. I detect"
  871.                          " AmigaOS v" #ver "." #rev " and will install the"
  872.                          " correct version. Shall I install it?")
  873.                  (help "arp.library is also an essential library as it"
  874.                        " provides routines that make a programmer's life"
  875.                        " easier when he is forced to compatibility with"
  876.                        " AmigaOS 1.3 (34.x).")
  877.                  (source (tackon (tackon (pathonly @icon) "Libs") #arpname))
  878.                  (dest "Libs:")
  879.                  (newname "arp.library")
  880.                  (confirm)
  881.                  (optional force askuser)
  882.         ) ; end of copylib
  883.  
  884.         (complete 45)
  885.  
  886. ; install xprzmodem.library v2.52T
  887.  
  888.         (copyfiles (prompt "There are several new xprzmodem.library versions"
  889.                           " floating around, but most of them have bugs or"
  890.                           " they are extreamely slow and CPU time hungry.")
  891.                    (help "This xprzmodem.library v2.52t provides a special parameter"
  892.                          " called T like TransAmiga. If the library is in"
  893.                          " this mode it accepts upload resumes only if there"
  894.                          " is no .Desc file.\n\n.Desc files are made by TransAmiga"
  895.                          " as soon as the file is received completely and"
  896.                          " written to the filelist. So it's save to say:"
  897.                          "\n\nIf there is a .Desc file no resume is allowed."
  898.                          "\n\nThis is the whole secret of the library."
  899.                          "The library is compiled by Georg 'Gio' Magschok."
  900.                          "\n\nSeveral SysOps reported problems with v3.x"
  901.                          " of xprzmodem.library. The library is localized"
  902.                          " and needs a lot of CPU time. This can lead to"
  903.                          " transmission errors especially with higher"
  904.                          " speeds. If you have a really fast CPU you may"
  905.                          " never come accross this phenomen, but if you"
  906.                          " do not use a serial board  (e.g. MFC) I strongly"
  907.                          " suggest to use the supplied version as it works"
  908.                          " perfectly.")
  909.                     (source (tackon (tackon (pathonly @icon) "Libs") #libname))
  910.                     (dest "Libs:")
  911.                     (newname "xprzmodem.library")
  912.                     (confirm)
  913.                     (optional force askuser)
  914.         ) ; end of copyfiles
  915.  
  916.         (complete 50)
  917.  
  918. ; install FIFO for TrShell
  919.  
  920.         (if (askbool
  921.                 (prompt "Do you wish to install"
  922.                         " Fifo library and files? [Read help for more"
  923.                         " information]")
  924.                 (help "The fifo.library and handler are"
  925.                       " necessary to use TrShell the BBS shell which allows"
  926.                       " the SysOp and CoSysOps to use \"Amiga's Shell\""
  927.                       " from the BBS and do some cleanup or other"
  928.                       " important stuff that can not be done from the"
  929.                       " BBS itself. The shell can be used remotely. This"
  930.                       " means the sysop can log into the BBS via"
  931.                       " modem and use the shell as if he would be at home."
  932.                       " Some restrictions are there, e.g. cursor keys are"
  933.                       " not working in the current version. The shell can"
  934.                       " be used to run door games from several other BBS"
  935.                       " packages. If you use it in this matter I have to warn"
  936.                       " you! When the program fails - perhaps by a user"
  937.                       " pressing CTRL-C - he can get into the shell and"
  938.                       " format your drives! Use FailAt at the beginning"
  939.                       " of the shell-script that is executed to run the"
  940.                       " program. Set it to a high value e.g. FailAt 9999"
  941.                       " and you should be safe that noone can breack in"
  942.                       " and kill your system. Netherless you should test"
  943.                       " it yourself! Test if you can break the program"
  944.                       " and enter the shell. If this happens you should"
  945.                       " not give public access to the door. You can use"
  946.                       " a commandline switch to disable CTRL-C. If you have"
  947.                       " problems ask me (Sami Radwan) or any"
  948.                       " other \"Official Support SysOp\" or a TransAmiga"
  949.                       " SysOp you know well so there will be no"
  950.                       " \"backdoors\" that allow them entering the shell.")
  951.                 (default 1)
  952.                 (choices "Install Fifo" "Skip this part")
  953.             ) ; end of askbool
  954.                 ( ; start positive part
  955.                  (copyfiles
  956.                         (prompt "Copying fifo handler...")
  957.                         (help "fifo-handler is the needed handler.")
  958.                         (source (tackon (pathonly @icon) "l/fifo-handler"))
  959.                         (dest "l:")
  960.                         (confirm)
  961.                         (optional force)
  962.                  )
  963.                  (copylib
  964.                         (prompt "Copying fifo library...")
  965.                         (help "the needed library is to be copied")
  966.                         (source (tackon (pathonly @icon) "libs/fifo.library"))
  967.                         (dest "libs:")
  968.                         (confirm)
  969.                         (optional force)
  970.                  )
  971.                  (startup "Fifo"
  972.                         (prompt "Adding fifo start entry to user-startup")
  973.                         (help "This has to be done to use fifo.")
  974.                         (command "run <nil: >nil: l:fifo-handler\n")
  975.                  )
  976.                 ) ; end of positice part & fifo installation
  977.         ) ; end of fifo installation
  978.  
  979.         (complete 55)
  980.  
  981. ; make the master config file
  982.  
  983.         (set #sysname (askstring
  984.                         (prompt "Enter the FULL name of the SysOp [use"
  985.                                 " only 80 characters or you will have"
  986.                                 " trouble to use the BBS.]")
  987.                         (help "The name of the SysOp is needed. Normally"
  988.                               " this should be your complete name in"
  989.                               " normal order. Maximum is 80 characters.")
  990.                         (default "")
  991.                        )
  992.         ) ; sysop name should be entered now
  993.         (set #bbsname (askstring
  994.                         (prompt "Enter the name you wish to give your BBS")
  995.                         (help "The name of your BBS should be something"
  996.                               " that's not used by everybody. It is the"
  997.                               " title of the BBS. For example"
  998.                               " \"Amiga on Phone\" is the name of my BBS.")
  999.                         (default "BBS")
  1000.                      )
  1001.         )
  1002.         (set #idletime (asknumber
  1003.                         (prompt "Enter the idle time after that a user is"
  1004.                                 " logged off")
  1005.                         (help "The idle time indicates how long a user can"
  1006.                               " enter nothing and is considered as acive."
  1007.                               " If the time is passed the user is logged"
  1008.                               " off with the comment \"User inactivity"
  1009.                               " logoff...\" and the BBS is free for the"
  1010.                               " next caller.")
  1011.                         (range 60 3600)
  1012.                         (default 180)
  1013.                       )
  1014.         )
  1015.         (set #syspath (tackon #bbspath "System"))
  1016.         (if (not (exists #syspath))
  1017.                 (makedir #syspath)
  1018.         )
  1019.         (set #cfgpath (tackon #bbspath "Configs"))
  1020.         (if (not (exists #cfgpath))
  1021.                 (makedir #cfgpath)
  1022.         )
  1023.         (if (not (exists (tackon #bbspath "Files")))
  1024.                 (makedir (tackon #bbspath "Files"))
  1025.         )
  1026.         (if (not (exists (tackon #bbspath "Files/Uploads")))
  1027.                 (makedir (tackon #bbspath "Files/Uploads"))
  1028.         )
  1029.         (textfile
  1030.                 (prompt "Generating Files.BBS file...")
  1031.                 (help "This file tells TransAmiga which"
  1032.                       " files are in the area.")
  1033.                 (dest (tackon #bbspath "Files/Uploads/Files.BBS"))
  1034.                 (append "\\Place your uploads here\n\\\n")
  1035.         )
  1036.         (set #userpath (tackon #bbspath "Users"))
  1037.         (if (not (exists #userpath))
  1038.                 (makedir #userpath)
  1039.         )
  1040.         (set #textpath (tackon #bbspath "Text"))
  1041.         (if (not (exists #textpath))
  1042.                 (makedir #textpath)
  1043.         )
  1044.         (set #rexxpath (tackon #bbspath "Rexx"))
  1045.         (if (not (exists #rexxpath))
  1046.                 (makedir #rexxpath)
  1047.         )
  1048.         (set #bulletinpath (tackon #bbspath "Bulletins"))
  1049.         (if (not (exists #bulletinpath))
  1050.                 (makedir #bulletinpath)
  1051.         )
  1052.         (set #extrapath (tackon #bbspath "Extras"))
  1053.         (if (not (exists #extrapath))
  1054.                 (makedir #extrapath)
  1055.         )
  1056.         (set #maxbaud (asknumber
  1057.                         (prompt "Enter the maximum DTE baud rate your modem"
  1058.                                 " supports.")
  1059.                         (help "DTE is the Data Terminal Equipment. DTE baud"
  1060.                               " rate means the locked baud rate if your modem"
  1061.                               " is a 'high speed' modem and the highest connect"
  1062.                               " rate if your modem does not support locking of"
  1063.                               " the baudrate.")
  1064.                         (range 110 115200)
  1065.                         (default 38400)
  1066.                      )
  1067.         )
  1068.         (set #minbaud (asknumber
  1069.                         (prompt "Enter the minimum baudrate you want to"
  1070.                                 " allow people to connect to your modem.")
  1071.                         (help "If the user connects with a lower baud rate"
  1072.                               " he will be toled that his connect rate is"
  1073.                               " too slow and logged off. You should set"
  1074.                               " this at least to 1200. I have several users"
  1075.                               " who have a 1200 baud modem so I set it to"
  1076.                               " this. If you don't want people to connect"
  1077.                               " with such a really slow baudrate set this"
  1078.                               " to something higher. e.g. 2400")
  1079.                         (range 110 115200)
  1080.                         (default 1200)
  1081.                      )
  1082.         )
  1083.         (set #mdmanswer (askstring
  1084.                         (prompt "Enter the modem answer string")
  1085.                         (help "If you want TransAmiga to answer the"
  1086.                               " phone itself you should use the default."
  1087.                               " If you want the modem to answer itself"
  1088.                               " delete the default and enter nothing.")
  1089.                         (default "~~ATA|")
  1090.                        ) ; end of askstring
  1091.         )
  1092.         (set #mdminit (askstring
  1093.                         (prompt "Enter the initialisation command for your"
  1094.                                 " modem [read the help if you don't know]")
  1095.                         (help "The initialisation command is very"
  1096.                               " essential. It varies on your needs and on"
  1097.                               " the modem you use. There is no real"
  1098.                               " standard. Most modems have \"Hayes\""
  1099.                               " compatible commands. The default string"
  1100.                               " that is given works with several modems."
  1101.                               " The important thing is that you let the"
  1102.                               " modem answer incomming calls itself if you"
  1103.                               " deleted the modem answer string of the last"
  1104.                               " question.\n"
  1105.                               " Normally the modem answers the phone itself"
  1106.                               " if you use ATS0=1. AT is the"
  1107.                               " command introducter and means \"ATTENTION\""
  1108.                               ". S0=1 sets the S-register 0 to the value 1."
  1109.                               " The effect is that the modem answers the"
  1110.                               " line as soon as it detects 1 ring. A complete"
  1111.                               " init string would be ATZ|~~~ATX4M0S0=1|.\nHave a"
  1112.                               " look to your modem manual to have more"
  1113.                               " detailed information about this. The modem"
  1114.                               " also has to return \"verbal\" result codes"
  1115.                               " and not numerical. Read TransAmiga manual"
  1116.                               " to find out a bit more about this and also"
  1117.                               " read your modem manual.")
  1118. ; change help text!!!
  1119.                         (default "ATZ|~~~ATX4M0|~")
  1120.                      )
  1121.         )
  1122.         (set #mdmexit (askstring
  1123.                         (prompt "Enter the modem exit string that is used"
  1124.                                 " when a user leaves the BBS.")
  1125.                         (help "The exit string is used to reset the modem"
  1126.                               " when the connection is terminated. Again:"
  1127.                               " read TransAmiga manual and check your"
  1128.                               " modem manual. The default string should be"
  1129.                               " ok for most modems.")
  1130.                         (default "ATZ|")
  1131.                      )
  1132.         )
  1133.         (set #mdmaoff (askstring
  1134.                         (prompt "Enter the modem command that should be"
  1135.                                 " executed when you log on locally.")
  1136.                         (help "This command is send to the modem when you"
  1137.                               " log on locally. This means you do not need"
  1138.                               " to use a modem to enter the BBS. Instad you"
  1139.                               " can select \"local logon\" from the pull"
  1140.                               " down menu or use the shortcut. The command"
  1141.                               " is used to let the modem go off hook."
  1142.                               " ATTENTION! In some countries the phone"
  1143.                               " companies don't like this, so be carefull"
  1144.                               " and inform yourself. The default string"
  1145.                               " takes the modem off hook. You can also use"
  1146.                               " ATS0=99 and the modem will never answer the"
  1147.                               " phone when it rings.")
  1148.                         (default "ATH1|")
  1149.                      )
  1150.         )
  1151.         (set #mdmaon (askstring
  1152.                         (prompt "Enter the modem command that should be"
  1153.                                 " executed when you have finished your"
  1154.                                 " local logon.")
  1155.                         (help "This is just the matching command for the"
  1156.                               " one you just entered. If you used ATS0=99|"
  1157.                               " you should now use ATS0=1|. If you used"
  1158.                               " the default string you should use it now"
  1159.                               " again.")
  1160.                         (default "ATH0|")
  1161.                     )
  1162.         )
  1163.         (set #serialdev (askstring
  1164.                         (prompt "Enter the name of the serial device.")
  1165.                         (help "This is the device that is compatible to"
  1166.                               " the original serial.device delivered by"
  1167.                               " Commodore. If you use the internal serial"
  1168.                               " port or the A2232 card you use the default"
  1169.                               " \"serial.device\". If you use a product"
  1170.                               " from a third party [e.g. MultiFaceCard II"
  1171.                               " by bsc] you have to use the device that"
  1172.                               " is delivered with the product"
  1173.                               " [e.g. \"duart.device\" when you use MFC II]")
  1174.                         (default "serial.device")
  1175.                        )
  1176.         )
  1177.         (set #serialunit (asknumber
  1178.                         (prompt "Enter the unit number you want to use.")
  1179.                         (help "The unit number indicates which port you"
  1180.                               " wish to use. When you use the internal"
  1181.                               " port this number is 0. When you use the"
  1182.                               " first port of A2232 the unit is 2. When"
  1183.                               " you use the first port of MFC II the"
  1184.                               " number is 0. Now you should know which"
  1185.                               " number you have to use.")
  1186.                         (range 0 100)
  1187.                         (default 0)
  1188.                         )
  1189.         )
  1190.         (set #defaccess (asknumber
  1191.                         (prompt "Enter the access that is given to new"
  1192.                                 " users. Read the help part if you don't"
  1193.                                 " know what it is.")
  1194.                         (help "New users are users who have just joind the"
  1195.                               " BBS. Normally that are first time callers"
  1196.                               " who want to use your BBS regularily. The"
  1197.                               " valid range is 1 to 255. I suggest to use"
  1198.                               " something around 5 as you had no chance to"
  1199.                               " check validate the user and check if his"
  1200.                               " input of the join procedure is true. 255"
  1201.                               " is suggested to be SysOp access. You"
  1202.                               " should *never* give it to any user then"
  1203.                               " yourself.")
  1204.                         (range 1 255)
  1205.                         (default 5)
  1206.                        )
  1207.         )
  1208.         (set #deflimit (asknumber
  1209.                         (prompt "Enter the time limit that is given to new"
  1210.                                 " users.")
  1211.                         (help "Again: the user is not validated and has"
  1212.                               " just filled in the user application. This"
  1213.                               " is the time the user gets every day untill"
  1214.                               " you validate him/her. Valid range is 1 to"
  1215.                               " 255. You never should set the time to a"
  1216.                               " value lower than 10 I suggest at least 30.")
  1217.                         (range 1 255)
  1218.                         (default 25)
  1219.                       )
  1220.         )
  1221.         (set #defratio (asknumber
  1222.                         (prompt "Enter the file ratio that is given to new"
  1223.                                 " users.")
  1224.                         (help "file ratio: This defines how many files a"
  1225.                               " user can download before he is forced to"
  1226.                               " upload a file. As soon as a file has been"
  1227.                               " uploaded the user can download again the"
  1228.                               " number of files you specify here. 255"
  1229.                               " disables the ratio completely.")
  1230.                         (range 1 255)
  1231.                         (default 20)
  1232.                       )
  1233.         )
  1234.         (set #newbyte (asknumber
  1235.                         (prompt "Enter the byteratio for new users.")
  1236.                         (help "This is similar to file ratio but is based"
  1237.                               " on the byte counting. 0 disables this type"
  1238.                               " of ratio. The maximum is 2147483647.")
  1239.                         (range 0 2147483647)
  1240.                         (default 0)
  1241.                  )
  1242.         )
  1243.         (set #defflags (asknumber
  1244.                         (prompt "This is a bit complicated. You can use"
  1245.                                 " flags in the BBS for the commands. You"
  1246.                                 " can use them to group users in"
  1247.                                 " conjunction with user level. Flags are"
  1248.                                 " independant from userlevel. If a user"
  1249.                                 " should have access to a command or"
  1250.                                 " file/message area both, accesslevel and"
  1251.                                 " flags must allow it. Here you enter flags"
  1252.                                 " in numerical form. TransAmiga displays"
  1253.                                 " them if an other form: --X----X. Read the"
  1254.                                 " help to get more information.")
  1255.                         (help "The flags are a bit complicated as I have no"
  1256.                               " time to write a conversion routine for the"
  1257.                               " Installer. TransAmiga allowas 8 flags. The"
  1258.                               " display in the BBS is the following:"
  1259.                               " -------- A X represents an active flag a"
  1260.                               " dash '-' represents an unset flag. 8 - are"
  1261.                               " the equivalent of 8 unset flags. The"
  1262.                               " corresponding number is 0. The flags are"
  1263.                               " stored internally in a byte so each flag"
  1264.                               " has a corresponding number. The number is"
  1265.                               " calculated inverse. Normally the decimal"
  1266.                               " number of bytes is calculated from the"
  1267.                               " right to left but we calculate it from"
  1268.                               " left to right. Read the tech.doc for more"
  1269.                               " detailed information. If you don't know"
  1270.                               " how the flags work you should use 0 for"
  1271.                               " now. You can alter this when you are more"
  1272.                               " familar with the BBS.")
  1273.                         (range 0 255)
  1274.                         (default 0)
  1275.                       )
  1276.         )
  1277.         (set #privacc (asknumber
  1278.                         (prompt "Enter the access level for privileged"
  1279.                                 " access.")
  1280.                         (help "This is the access level that gives you"
  1281.                               " power. If you have this access you can"
  1282.                               " read privileged mail. This means you can"
  1283.                               " read ALL mail that is written in the BBS."
  1284.                               " This access is for CoSysOps and SysOp"
  1285.                               " only. Use it carefully. You should give"
  1286.                               " this access only very few people. A user"
  1287.                               " has this access when his access level is"
  1288.                               " equivalent or higher.")
  1289.                         (range 1 255)
  1290.                         (default 250)
  1291.                      )
  1292.         )
  1293.         (set #gtime (asknumber
  1294.                         (prompt "Enter the time for guest callers.")
  1295.                         (help "The guest time is the time a user gets when"
  1296.                               " he loggs on the first time. There should"
  1297.                               " be enouh time to play a bit around so the"
  1298.                               " guest can decide if he want to join the"
  1299.                               " BBS. I suggest 20 minutes.")
  1300.                         (range 1 255)
  1301.                         (default 20)
  1302.                    )
  1303.         )
  1304.         (set #gratio (asknumber
  1305.                         (prompt "Enter the file ratio for guest callers")
  1306.                         (help "File ratio has been explained earlier. If"
  1307.                               " you did not read it then I strongly"
  1308.                               " suggest to read the manual. Remember the"
  1309.                               " user calls for the first time. At least he"
  1310.                               " should be able to download your filelist."
  1311.                               " I suggest 5 and it's default.")
  1312.                         (range 1 255)
  1313.                         (default 5)
  1314.                     )
  1315.         )
  1316.         (set #gbyte (asknumber
  1317.                         (prompt "Enter the byteratio you wish for"
  1318.                                 " guest users.")
  1319.                         (help "This is similar to file ratio but is based"
  1320.                               " on the byte counting. 0 disables this type"
  1321.                               " of ratio. The maximum is 2147483647.")
  1322.                         (range 0 2147483647)
  1323.                         (default 0)
  1324.                  )
  1325.         )
  1326.         (if (askbool
  1327.                 (prompt "You you want TransAmiga on a custom screen?")
  1328.                 (help "When TransAmiga starts up it needs a screen for"
  1329.                       " it's windows. A custom screen is just a screen"
  1330.                       " that is opened by TransAmiga itself. If you don't"
  1331.                       " like TransAmiga to run at an own screen select"
  1332.                       " \"Workbench Screen\" and TransAmiga will open the"
  1333.                       " windows on the Workbench or any other screen that"
  1334.                       " is the default screen in the system.\n\nThe colours"
  1335.                       " of that screen are used. This meens you will not"
  1336.                       " have the proper colours on your TransAmiga"
  1337.                       " windows in most cases. If TransAmiga opens it's"
  1338.                       " own screen the colours are set to ANSI colors so"
  1339.                       " you will have the")
  1340.                         (default 0)
  1341.                         (choices "Workbench screen" "Custom screen")
  1342.                     ) ; end of askbool
  1343.                         (set #scrntype 0)
  1344.                          ; choose interlace or not
  1345.                          ((if (askbool
  1346.                              (prompt "Do you wish an interlaced screen?")
  1347.                              (help
  1348.                               " for TransAmiga loaced screen\".\n\nInterlace"
  1349.                               " doubles the horizontal number of lines."
  1350.                               " This is done by displaying just every"
  1351.                               " second line in one display period. If you"
  1352.                               " use interlace without a flicker fixer the"
  1353.                               " monitor shows an ugly flickering that is"
  1354.                               " in no way good for the eyes.")
  1355.                         (default 0)
  1356.                         (choices "interlaced screen" "noninterlaced screen")
  1357.                     ) ; end of askbool
  1358.                         (set #scrntype 4)
  1359.                         (set #scrntype 2)
  1360.                  ) ; end of if
  1361.                  (set #scrnplanes (asknumber
  1362.                                         (prompt "Enter the number of"
  1363.                                                 " bitplanes for the"
  1364.                                                 " screen.")
  1365.                                         (help "The bitplane number defines"
  1366.                                               " the number of colours. For"
  1367.                                               " two colours specify 1, for"
  1368.                                               " 4 colours specify 2, 8"
  1369.                                               " colour value is 3 and for 16"
  1370.                                               " colours use 4.")
  1371.                                         (range 1 4)
  1372.                                         (default 3)
  1373.                                  )
  1374.                  )
  1375.                  (set #scrnw (asknumber
  1376.                                 (prompt "Enter the width of the screen. [0"
  1377.                                         " tells TransAmiga to use the same"
  1378.                                         " width as the default screen -"
  1379.                                         " Workbench normally.]")
  1380.                                 (help "The width of the screen is the"
  1381.                                       " maximim x coordinate. It indicates"
  1382.                                       " how many pixel are used"
  1383.                                       " horizontally for the screen. I"
  1384.                                       " suggest to use a slight overscan"
  1385.                                       " so you have full 80 characters on"
  1386.                                       " the screen. If you use normal"
  1387.                                       " screen width (640) you get 80"
  1388.                                       " characters in a line normally, but"
  1389.                                       " as we use windows with borders you"
  1390.                                       " need more pixel to display 80"
  1391.                                       " characters a line instide the"
  1392.                                       " border.")
  1393.                                 (range 0 6000)
  1394.                                 (default 650)
  1395.                             )
  1396.                  ) ; screen width is set now
  1397.                  (set #scrnh (asknumber
  1398.                                 (prompt "Enter the hight of the screen. [0"
  1399.                                         " tells TransAmiga again to  use"
  1400.                                         " the same as the default screen.]")
  1401.                                 (help "the standard screen width in NTSC"
  1402.                                       " is 200. If interlace is used it is"
  1403.                                       " 400. If you have a pal system the"
  1404.                                       " standard display has 256 pixel and"
  1405.                                       " when you use interlace it is 512."
  1406.                                       " I suggest to use the same hight you"
  1407.                                       " use on your default screen. You can"
  1408.                                       " do this by entering 0 and"
  1409.                                       " TransAmiga always catches the"
  1410.                                       " information from the default"
  1411.                                       " screen.\n\nYou may change the size of"
  1412.                                       " the default screen and TransAmiga"
  1413.                                       " will use it at startup. Naturally"
  1414.                                       " TransAmiga does not change the"
  1415.                                       " screen size if it is allready"
  1416.                                       " running and you change the size of"
  1417.                                       " the default screen.")
  1418.                                 (range 0 6000)
  1419.                                 (default 0)
  1420.                             )
  1421.                  ) ; screen hight is set now
  1422.                  (if (askbool
  1423.                         (prompt "Do you wish to open a blue backdrop window?")
  1424.                         (help "This makes a blue background if you"
  1425.                               " use TransAmiga on a custom screen.")
  1426.                         (default 1)
  1427.                         (choices "use backdrop" "don't use backdrop")
  1428.                      )
  1429.                         (set #backdrop 1)
  1430.                         (set #backdrop 0)
  1431.                  ) ; end of if
  1432.                 ) ; end of positive part - Custom screen choosen
  1433.                 ((set #scrntype 0)
  1434.                  (set #scrnw 640)
  1435.                  (set #scrnh 0)
  1436.                 )) ; end of negative part & if - WB screen choosen
  1437.                 (set #termx (asknumber
  1438.                                 (prompt "Enter the x-coordinate of the top"
  1439.                                         " left corner of the terminal"
  1440.                                         " window.")
  1441.                                 (help "The terminal window is the window"
  1442.                                       " where everything is displayed what"
  1443.                                       " the user sees. I suggest to use 0"
  1444.                                       " so that the window's left border"
  1445.                                       " is as left as possible.")
  1446.                                 (range 0 6000)
  1447.                                 (default 0)
  1448.                            )
  1449.                 )
  1450.                 (set #termy (asknumber
  1451.                                 (prompt "Enter the y-coordinate of the top"
  1452.                                         " left corner of the terminal"
  1453.                                         " window.")
  1454.                                 (help "If you want to see the screen title"
  1455.                                       " you should place the window"
  1456.                                       " directly under it. If you don't"
  1457.                                       " need to see the screen title at"
  1458.                                       " any time you should use 0.")
  1459.                                 (range 0 6000)
  1460.                                 (default 11)
  1461.                            )
  1462.                 )
  1463.                 (set #termw (asknumber
  1464.                                 (prompt "Enter the width of the terminal"
  1465.                                         "window. [0 tells TransAmiga to"
  1466.                                         " use the highest possible value]")
  1467.                                 (help "This should be the same as the"
  1468.                                       " screen width. If you set this to a"
  1469.                                       " lower value you don't need such a"
  1470.                                       " big screen. That would be waste of"
  1471.                                       " chip memory.")
  1472.                                 (range 0 6000)
  1473.                                 (default 0)
  1474.                             )
  1475.                 ) ; terminal window width is set now
  1476.                 (set #termh (asknumber
  1477.                                 (prompt "Enter the hight of the terminal"
  1478.                                         " window. [0 tells TransAmiga"
  1479.                                         " again to use the highest possible"
  1480.                                         " value.]")
  1481.                                 (help "This should be the screen length"
  1482.                                       " minus the y coordinate you entered"
  1483.                                       " before. If you enter a too high"
  1484.                                       " value it will be adjusted to a"
  1485.                                       " valid number internally.")
  1486.                                 (range 0 6000)
  1487.                                 (default 0)
  1488.                             )
  1489.                 ) ; terminal window hight is set now
  1490.                 (if (askbool
  1491.                         (prompt "Dou you want a sizing gadget on your"
  1492.                                 " terminal window?")
  1493.                         (help "Normally this should not be necessary"
  1494.                               " It's just waste of space in your window."
  1495.                               " I personally prefer to have none but if"
  1496.                               " you need to adjust the size of the window"
  1497.                               " use it.")
  1498.                         (default 0)
  1499.                         (choices "sizing gadget" "no sizing gadget")
  1500.                      )
  1501.                         (set #sizegad 1)
  1502.                         (set #sizegad 0)
  1503.                 ) ; sizing gadget choose finished
  1504.                 (set #fontname (askstring
  1505.                                 (prompt "Which font do you want to use in"
  1506.                                         " the terminal window?")
  1507.                                 (help "I strongly suggest to use the"
  1508.                                       " delivered font or any other IBM"
  1509.                                       " compatible font.")
  1510.                                 (default "TransIBM.font")
  1511.                                ) ; end of askstring
  1512.                 ) ; font name is choosen
  1513.                 (set #fontsize (asknumber
  1514.                                 (prompt "Enter the font size you want to"
  1515.                                         " use.")
  1516.                                 (help "The TransIBM.font comes just in one"
  1517.                                       " size: 8. I suggest not to use"
  1518.                                       " higher values unless you have a"
  1519.                                       " bigger overscan. The AmigaOS can"
  1520.                                       " adjust the font to any size you"
  1521.                                       " wish. I don't know when this"
  1522.                                       " feature was added but AmigaOS 3.0"
  1523.                                       " is surely able to do this. If you"
  1524.                                       " want to know if your system can"
  1525.                                       " do it just start the prefs program"
  1526.                                       " for fonts, choose TransIBM and"
  1527.                                       " enter 11 for the size. If the"
  1528.                                       " display of the font changes your"
  1529.                                       " system is able to adust fontsize.")
  1530.                                 (range 3 100)
  1531.                                 (default 8)
  1532.                                )
  1533.                 ) ; font size choosen
  1534.                 (set #cli (asknumber
  1535.                                 (prompt "Enter the ANSI colour number you"
  1536.                                         " wish the BBS to use for input.")
  1537.                                 (help "There exist 8 ANSI colours that"
  1538.                                       " are numbered from 0 to 7. If you"
  1539.                                       " want to know more about ANSI"
  1540.                                       " colours then read the"
  1541.                                       " corresponding part of the Docs.")
  1542.                                 (range 0 7)
  1543.                                 (default 7)
  1544.                          )
  1545.                 ) ; input colour choosen
  1546.                 (set #clp (asknumber
  1547.                                 (prompt "Enter the ANSI colour number you"
  1548.                                         " wish the BBS to use for prompts.")
  1549.                                 (help "There exist 8 ANSI colours that"
  1550.                                       " are numbered from 0 to 7. If you"
  1551.                                       " want to know more about ANSI"
  1552.                                       " colours then read the"
  1553.                                       " corresponding part of the Docs.")
  1554.                                 (range 0 7)
  1555.                                 (default 3)
  1556.                          )
  1557.                 ) ; prompt colour choosen
  1558.                 (set #clt (asknumber
  1559.                                 (prompt "Enter the ANSI colour number you"
  1560.                                         " wish the BBS to use for text trim.")
  1561.                                 (help "There exist 8 ANSI colours that"
  1562.                                       " are numbered from 0 to 7. If you"
  1563.                                       " want to know more about ANSI"
  1564.                                       " colours then read the"
  1565.                                       " corresponding part of the Docs.")
  1566.                                 (range 0 7)
  1567.                                 (default 4)
  1568.                          )
  1569.                 ) ; text trim colour choosen
  1570.                 (if (askbool
  1571.                         (prompt "Do you want to use an input field for"
  1572.                                 " ANSI callers?")
  1573.                         (help "The input filed shows the user how many"
  1574.                               " letters he can enter at a prompt.")
  1575.                         (default 1)
  1576.                         (choices "use input field" "no input field")
  1577.                     )
  1578.                         (set #promptfield 1)
  1579.                         (set #promptfield 0)
  1580.                 ) ; input field choosen
  1581.                 (set #loglevel (asknumber
  1582.                                 (prompt "Enter the loglevel for the ammount of"
  1583.                                         " output to the logfile.")
  1584.                                 (help "The higher the loglevel the more"
  1585.                                       " TransAmiga writes to the logfile."
  1586.                                       " Experience showed that 6 is a good"
  1587.                                       " value as all important info is stored."
  1588.                                       "\n\n11 is only for debugging and makes"
  1589.                                       " really large logfiles and slows"
  1590.                                       " execution down a lot. There should"
  1591.                                       " never be the need for you to use such a"
  1592.                                       " high loglevel.")
  1593.                                 (range 0 11)
  1594.                                 (default 6)
  1595.                          )
  1596.                 )
  1597.                 (set #taskpri (asknumber
  1598.                                 (prompt "Enter the priority of TransAmiga's main"
  1599.                                         " task.")
  1600.                                 (help "The tast priority tells the operating"
  1601.                                       " system (AmigaOS) how many CPU-time this"
  1602.                                       " program will get. The higher the priority"
  1603.                                       " the more time it will get and the slower"
  1604.                                       " the other tasks are.\n\nNormally most"
  1605.                                       " programs start with priority 0. That is"
  1606.                                       " a good value and should make no problems."
  1607.                                       " Change the value only if you know what"
  1608.                                       " you do!")
  1609.                                 (range -3 3)
  1610.                                 (default 0)
  1611.                          )
  1612.                 )
  1613.                 (if (askbool
  1614.                         (prompt "Do you want that the users online time is"
  1615.                                 " decreased while chat?")
  1616.                         (help "If the users time is decreased while chat it"
  1617.                               " may happen that he is logged off as soon"
  1618.                               " as he leaves the chat due to no left"
  1619.                               " onlinetime.")
  1620.                         (default 1)
  1621.                         (choices "decrease time" "stop time")
  1622.                     )
  1623.                     (set #chatdec 0)
  1624.                     (set #chatdec 1)
  1625.                 )
  1626.                 (set #mainconfig (cat #syspath "\n" #cfgpath "\n" #userpath
  1627.                                      "\n" #textpath "\n" #bulletinpath "\n"
  1628.                                      #extrapath "\n" #rexxpath "\n" #maxbaud
  1629.                                      "\n" #mdminit "\n" #mdmexit "\n" #mdmaoff
  1630.                                      "\n" #mdmaon "\n" #serialdev "\n"
  1631.                                      #serialunit "\n" #deflimit "\n" #defratio
  1632.                                      "\n" #defacc "\n" #defflags "\n" #privacc
  1633.                                      "\n" #idletime "\n" #bbsname "\n"
  1634.                                      #sysname "\n" #scrntype "\n" #scrnplanes
  1635.                                      "\n" #backdrop "\n" #scrnw "\n" #scrnh
  1636.                                      "\n" #termx "\n" #termy "\n" #termw "\n"
  1637.                                      #termh "\n" #fontname "\n" #fontsize "\n"
  1638.                                      #cli "\n" #clp "\n" clt "\n" #minbaud "\n"
  1639.                                      #sizegad "\n" #promptfield "\n" #gtime
  1640.                                      "\n" #gratio "\n" #mdmanswer "\n" #loglevel
  1641.                                      "\n" #newbyte "\n" #gbyte "\n" #taskpri
  1642.                                      "\n" #chatdec "\n\n\n\n\n\n\n")
  1643.                 )
  1644.                 (textfile
  1645.                         (prompt "Generating master configuration file...")
  1646.                         (help "The data you have entered is used to"
  1647.                               " generate the main configuration file.")
  1648.                         (dest (tackon #cfgpath "TransAmiga.cfg"))
  1649.                         (append #mainconfig)
  1650.                         (confirm)
  1651.                 ) ; master configuration file is written
  1652.  
  1653.         (complete 70)
  1654.  
  1655. ; make a Message.cfg file
  1656.  
  1657.                 (set #msgconfig (cat "1\n\n\n\n\n\n\n\n\n\n" #sysname "\n1\n"
  1658.                                     "BBS:Bin/TAEd  %f -n%n -q%q\n"
  1659.                                     "BBS:Bin/TAEd  %f -n%n -q%q\n"
  1660.                                     "0\n1\n\n\n1\nPrivate mail\n"
  1661.                                     "BBS:Mail/Private/\n1\n0\n"
  1662.                                     "0\n0\n0\n0\n\n"
  1663.                                     "In a message of %d, %n wrote to %a:\n"
  1664.                                     "0\n\n")
  1665.                 )
  1666.                 (textfile
  1667.                         (prompt "Generating message configuration file...")
  1668.                         (help "The data you have entered is used to"
  1669.                               " generate the message configuration file."
  1670.                               "\n\nAs this is a really basic setup only one"
  1671.                               " message conference will be created.")
  1672.                         (dest (tackon #cfgpath "Message.cfg"))
  1673.                         (append #msgconfig)
  1674.                         (confirm)
  1675.                 ) ; message configuration file is written
  1676.                 (if (not (exists (tackon #bbspath "Mail")))
  1677.                         (makedir (tackon #bbspath "Mail"))
  1678.                 )
  1679.                 (if (not (exists (tackon #bbspath "Mail/Private")))
  1680.                         (makedir (tackon #bbspath "Mail/Private"))
  1681.                 )
  1682.                 (textfile
  1683.                         (prompt "Generating Message.BBS file...")
  1684.                         (help "This file tells TransAmiga how many"
  1685.                               "messages are in the conference")
  1686.                         (dest (tackon #bbspath "Mail/Private/Message.BBS"))
  1687.                         (append "200\n0\n0\n")
  1688.                 )
  1689.                 (textfile
  1690.                         (prompt "Generating LastRead.BBS file...")
  1691.                         (help "This file tells TransAmiga which"
  1692.                               "message was the last the user read")
  1693.                         (dest (tackon #bbspath "Mail/Private/LastRead.BBS"))
  1694.                         (append "\0\0")
  1695.                 )
  1696.  
  1697.         (complete 75)
  1698.  
  1699. ; make a userfile for the sysop
  1700.  
  1701.                 (message "The next set of questions is necessary to generate"
  1702.                          " a userfile for the sysop. Please answer all"
  1703.                          " questions to your best knowledge.")
  1704.                 (set #street (askstring
  1705.                                 (prompt "Enter the street you live in.")
  1706.                                 (help "This is your street addess. Should"
  1707.                                       " be easy to answer.")
  1708.                                 (default "")
  1709.                                ) ; end of askstring
  1710.                 )
  1711.                 (set #city (askstring
  1712.                                 (prompt "Enter the name of the city you live in.")
  1713.                                 (help "This is the name only. Postal code is"
  1714.                                       " asked later so don't include it here.")
  1715.                                 (default "")
  1716.                                ) ; end of askstring
  1717.                 )
  1718.                 (set #province (askstring
  1719.                                 (prompt "Enter the province you live in.")
  1720.                                 (help "This is NOT the country! Enter your"
  1721.                                       " state, territory or whatever.")
  1722.                                 (default "")
  1723.                                ) ; end of askstring
  1724.                 )
  1725.                 (set #phone (askstring
  1726.                                 (prompt "Enter your phone number.")
  1727.                                 (help "This is your voice phone number. Should"
  1728.                                       " be easy to answer.")
  1729.                                 (default "")
  1730.                                ) ; end of askstring
  1731.                 )
  1732.                 (set #computer (askstring
  1733.                                 (prompt "Enter the type of your computer.")
  1734.                                 (help "This really should"
  1735.                                       " be easy to answer.")
  1736.                                 (default "")
  1737.                                ) ; end of askstring
  1738.                 )
  1739.                 (set #birth (askstring
  1740.                                 (prompt "Enter your birth date. ATTENTION!"
  1741.                                         " the format is YYMMDD")
  1742.                                 (help "This is your birth date. A special"
  1743.                                       " format is used: YYMMDD.\nYY means"
  1744.                                       " that you enter the year in two digits."
  1745.                                       "\nMM is the month in two digits.\nDD is"
  1746.                                       " the day in two digits.\n\nExample: Your"
  1747.                                       " birth date is 2nd january 1960 so you"
  1748.                                       " would enter 600102. Easy, isn't it?")
  1749.                                 (default "")
  1750.                                ) ; end of askstring
  1751.                 )
  1752.                 (set #pcode (askstring
  1753.                                 (prompt "Enter your postal code.")
  1754.                                 (help "This is your postal code. Should"
  1755.                                       " be easy to answer.")
  1756.                                 (default "")
  1757.                                ) ; end of askstring
  1758.                 )
  1759.                 (set #pswd (askstring
  1760.                                 (prompt "Enter the password for logon. (10 chars max.)")
  1761.                                 (help "You need the password every time you log"
  1762.                                       " onto the BBS yourself. The maximum is 10"
  1763.                                       " characters. Use something you remember"
  1764.                                       " but noone can guess easily.")
  1765.                                 (default "")
  1766.                                ) ; end of askstring
  1767.                 )
  1768.  
  1769.                 (set #userfile (cat street "\n" city "\n" province "\n" phone
  1770.                                "\n" computer "\n" birth "\n" pcode "\n\n"
  1771.                                "940801\n" pswd "\n0\n0\n0\n0\n0\n0\n24\n"
  1772.                                "0\n255\n255\n0\n1\n1\n255\n65000\n255\n"
  1773.                                "1\n1\nDEFAULT\n1\n1\n0\n\n0\n\n\n\n\n\n")
  1774.                 )
  1775.  
  1776.                 (if (not (exists (tackon #bbspath "Users")))
  1777.                         (makedir (tackon #bbspath "Users"))
  1778.                 )
  1779.  
  1780.                 (textfile
  1781.                         (prompt "Generating userfile...")
  1782.                         (help "The data you have entered is used to"
  1783.                               " generate the sysop userfile.")
  1784.                         (dest (tackon (tackon #bbspath "Users") #sysname))
  1785.                         (append #userfile)
  1786.                         (confirm)
  1787.                 ) ; userfile is written
  1788.  
  1789.                 (textfile
  1790.                         (prompt "Generating Users.BBS...")
  1791.                         (help "This file is needed for making"
  1792.                               " new userfiles.")
  1793.                         (dest (tackon (tackon #bbspath "Users") "Users.BBS"))
  1794.                         (append "0\n")
  1795.                 ) ; Users.BBS is written
  1796.  
  1797.         (complete 80)
  1798.  
  1799. ; *** the following copies ready to use config files ***
  1800.  
  1801.                 (message "The further setup is too complex to make it with"
  1802.                          " C= Installer. A working setup will be installed"
  1803.                          " so you can have a look at the BBS.\n\nIf you want"
  1804.                          " to customize edit the config files with a text"
  1805.                          " editor or run TransCfg, TransAmiga's setup"
  1806.                          " program.")
  1807.  
  1808. ; copy the config files
  1809.  
  1810.                 (copyfiles
  1811.                         (prompt "Copying config files...")
  1812.                         (help "This are the config files that indicate what"
  1813.                               " commandes are displayed in the menus. DO NOT"
  1814.                               " ALTER THESE FILES UNLESS YOU KNOW WHAT YOU DO!"
  1815.                               " Read the manual carefully about the customisation"
  1816.                               " of the BBS if you want to change anything."
  1817.                               " The .Rx files are the files that tell the BBS"
  1818.                               " which ARexx macros should be included as commands"
  1819.                               " in the menu.")
  1820.                         (source (tackon (pathonly @icon) "Configs"))
  1821.                         (dest (tackon #bbspath "Configs"))
  1822.                         (all)
  1823.                         (confirm)
  1824.                         (optional force)
  1825.                 ) ; end of copyfiles (configs)
  1826.  
  1827.         (complete 85)
  1828.  
  1829. ; add BBS: assign to user-startup
  1830.  
  1831.           (if (askbool
  1832.                 (prompt "Do you wish to start TransAmiga from your "
  1833.                         "\"User-Startup\"?")
  1834.                 (help "If you start TransAmiga from your User-Startup"
  1835.                       " it is started at every boot.")
  1836.                 (default 1)
  1837.                 (choices "Yes" "No")
  1838.                 ) ; end of askbool
  1839.                 (set #startit (cat "Run >NIL: " (tackon (tackon #bbspath "bin") "TransAmiga\n") ))
  1840.                 (set #startit "")
  1841.           ) ; end of if
  1842.  
  1843.           (startup "TransAmiga BBS"
  1844.                 (prompt "Add BBS: assign to your User-Startup?")
  1845.                 (help "You really should add this assign to your"
  1846.                       " User-Startup or the standard setup will fail.")
  1847.                 (command (cat "Assign BBS: " #bbspath "\n" #startit))
  1848.           )
  1849.  
  1850.           (complete 100)
  1851.         ) ; end of negative part
  1852.  
  1853.  
  1854. ) ; end of update/script
  1855.